#ifndef __HIKARI_copyAnimation___FILE__DEFINED
#define __HIKARI_copyAnimation___FILE__DEFINED

#include "hikari.h"

class copyAnimation:public BaseHikariScript{
public:
//PLEASE DO NOT MODIFY THIS SECTION
//PROPERTIES_SECTION_START
//PROPERTIES_SECTION_END
    virtual void sceneLoaded(HObj*object, HikariContext*context){
		HObj*anim=context->getObject(L"anim");
		object->useAnimationFromNode(anim);
	}
	//virtual void sceneUnloading(HObj*object, HikariContext*context){}
	virtual void update(HObj*object, HikariContext*context){
	}
    
	IMPLEMENT_RTTI(copyAnimation, base_rtti_object);
};

BEGIN_REFLECTION_METADATA(copyAnimation, base_rtti_object)
		//ATTRIBUTE_INT("someValueName", &myClass::setSomeValue, &myClass::getSomeValue);
		//ATTRIBUTE_INT("foo-attr int test", &foo::setI, &foo::getI);
END_REFLECTION_METADATA(copyAnimation)

#endif